/**
* @fileOverview 工作台接口
* @author wind-lc
* @version 1.0
*/

import { get, postQs } from '@/request/http'

// 获取用户地区信息
const getHnUserByUserName = params => {
  return get(process.env.VUE_APP_CDHNTECH_API + '/hnUser/getHnUserByUserName', params)
}
// 获取企业总数
const statisticsEntinfoCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnEntInfo/statisticsEntinfoCount', params)
}
// 重点管控企业总数
const strictEntinfoCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnEntInfo/strictEntinfoCount', params)
}
// 获取限停产已执行企业总数
const statisticsExecutedEntInfoCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnPlanEntinfo/statisticsExecutedEntInfoCount', params)
}
// 获取限停产未执行企业总数
const statisticsUnexecutedEntInfoCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnPlanEntinfo/statisticsUnexecutedEntInfoCount', params)
}
// 获取今日异常数
const dayPlanWarningCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnBigdataWarning/dayPlanWarningCount', params)
}
// 获取累计异常数
const planWarningCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnBigdataWarning/planWarningCount', params)
}
// 获取按区域统计管控企业TOP10
const findByGroupByAreaTop = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnEntInfo/findByGroupByAreaTop', params)
}
// 获取按行业统计管控企业TOP10
const findByGroupByIndustryTop = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnEntInfo/findByGroupByIndustryTop', params)
}
// 获取产污企业电量和分布情况
const areaPPCount = params => {
  return postQs(process.env.VUE_APP_ANALYSIS_API + '/hnBigdataWarning/areaPPCount', params)
}

export {
  getHnUserByUserName,
  statisticsEntinfoCount,
  strictEntinfoCount,
  statisticsExecutedEntInfoCount,
  statisticsUnexecutedEntInfoCount,
  dayPlanWarningCount,
  planWarningCount,
  findByGroupByAreaTop,
  findByGroupByIndustryTop,
  areaPPCount
}
